Skip to content

Conversation

@aztice
Copy link
Contributor

@aztice aztice commented Oct 31, 2025

PR Category

User Experience

PR Types

Bug fixes

Description

将在 #75742 中错误添加到 paddle.nn.CTCLossforward 函数参数 zero_infinity 移到 __init__ 上,以保持接口和 PyTorch torch.nn.CTCLoss1 一致

#75742 刚刚合入且未发版,尚无需考虑兼容性

Footnotes

  1. https://docs.pytorch.org/docs/stable/generated/torch.nn.CTCLoss.html

Added 'zero_infinity' parameter to CTC loss initialization and forward method.
@paddle-bot
Copy link

paddle-bot bot commented Oct 31, 2025

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Oct 31, 2025
Refactor zero_infinity parameter handling in CTC loss.
@SigureMo
Copy link
Member

描述里说清楚问题,写清上下文

@aztice
Copy link
Contributor Author

aztice commented Oct 31, 2025

描述里说清楚问题,写清上下文

ok

@SigureMo SigureMo changed the title [Fix] make zero_infinity a constructor arg for CTCLoss while keeping forward-compatibility [API] Move the zero_infinity parameter of CTCLoss from the forward function to the constructor Oct 31, 2025
@aztice
Copy link
Contributor Author

aztice commented Oct 31, 2025

/re-run all-failed

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@11fff57). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #76156   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?         2           
  Branches           ?         0           
===========================================
  Hits               ?         2           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@luotao1 luotao1 merged commit 8c7e02b into PaddlePaddle:develop Nov 3, 2025
109 of 114 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource 快乐开源活动issue与PR skip-ci: static-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants